using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Generalization
{
    /// <summary>
    /// <para>Simplify Building</para>
    /// <para>Simplifies boundaries or building footprints.</para>
    /// <para>简化边界或建筑物覆盖区。</para>
    /// </summary>    
    [DisplayName("Simplify Building")]
    public class SimplifyBuilding : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SimplifyBuilding()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_simplification_tolerance">
        /// <para>Simplification Tolerance</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public SimplifyBuilding(object _in_features, object _out_feature_class, string? _simplification_tolerance)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
            this._simplification_tolerance = _simplification_tolerance;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Simplify Building";

        public override string CallName => "management.SimplifyBuilding";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _simplification_tolerance, _minimum_area, _conflict_option.GetGPValue(), _in_barriers, _out_point_feature_class, _collapsed_point_option.GetGPValue()];

        /// <summary>
        /// <para>Input Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Simplification Tolerance</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Simplification Tolerance")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string? _simplification_tolerance { get; set; }


        /// <summary>
        /// <para>Minimum Area</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Minimum Area")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _minimum_area { get; set; } = null;


        /// <summary>
        /// <para>Check for spatial conflicts</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Check for spatial conflicts")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _conflict_option_value _conflict_option { get; set; } = _conflict_option_value._false;

        public enum _conflict_option_value
        {
            /// <summary>
            /// <para>CHECK_CONFLICTS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("CHECK_CONFLICTS")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>NO_CHECK</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NO_CHECK")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Input Barriers Layers</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Barriers Layers")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _in_barriers { get; set; } = null;


        /// <summary>
        /// <para>Output Point Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Point Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_point_feature_class { get; set; }


        /// <summary>
        /// <para>Keep collapsed points</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Keep collapsed points")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _collapsed_point_option_value _collapsed_point_option { get; set; } = _collapsed_point_option_value._false;

        public enum _collapsed_point_option_value
        {
            /// <summary>
            /// <para>KEEP_COLLAPSED_POINTS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("KEEP_COLLAPSED_POINTS")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>NO_KEEP</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NO_KEEP")]
            [GPEnumValue("false")]
            _false,

        }

        public SimplifyBuilding SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}